gdk-win32: Really Implement GdkScreen->is_composited()
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 15 Apr 2015 09:44:55 +0000 (17:44 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 17 Apr 2015 03:23:53 +0000 (11:23 +0800)
commitb85f0ccc672455d4b7c895cb00d3804b44310659
tree34c55cf69c9f7ca2eb2ee5e20a960077e9f060ac
parent24d3f3fcb2894df110a17317260b8705d68d22ec
gdk-win32: Really Implement GdkScreen->is_composited()

The current GdkScreen->is_composited() is a stub as we were having Windows
XP being supported, which does not support Desktop Window Manager (DWM),
which is used by Windows for composition.

Windows Vista and later support DWM, and it is always enabled on Windows 8/
Server 2012 and later.

Please note that as we are dropping XP support in this cycle, this is the
commit that would say goodbye to Windows XP support for GTK+-3.x, by
linking directly to dwmapi.dll.  This means, we only check whether we are
on Windows 8 or Server 2012 (or later) to see whether we unconditionally
have composition enabled.

https://bugzilla.gnome.org/show_bug.cgi?id=741849
build/win32/vs10/gdk.vcxprojin
build/win32/vs9/gdk.vcprojin
configure.ac
gdk/win32/gdkglobals-win32.c
gdk/win32/gdkmain-win32.c
gdk/win32/gdkprivate-win32.h
gdk/win32/gdkscreen-win32.c